public class Crop {
    private String name;  // 作物名称
    private int growthDuration;  // 成长所需时间（秒）
    private int currentGrowthTime;  // 当前生长时间（秒）
    private int stage;  // 当前生长阶段（1-3）

    public Crop(String name, int growthDuration) {
        this.name = name;
        this.growthDuration = growthDuration;
        this.currentGrowthTime = 0;
        this.stage = 1;
    }

    public void grow() {
        if (stage < 3) {
            currentGrowthTime++;
            if (currentGrowthTime >= (stage * growthDuration / 3)) {
                stage++;
                System.out.println(name + " has entered stage " + stage);
            }
        } else {
            System.out.println(name + " has reached full growth!");
        }
    }
}
